//package com.jxb.postprocessor;
//
//import com.jxb.service.OrderService;
//import org.springframework.beans.MutablePropertyValues;
//import org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor;
//import org.springframework.beans.factory.support.RootBeanDefinition;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ShiLIhuaQianBeanPostProcessor implements MergedBeanDefinitionPostProcessor {
//
//    @Override
//    public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {
//        if (beanName.equals("userService")) {
//            MutablePropertyValues propertyValues = new MutablePropertyValues();
//            OrderService orderService = new OrderService();
//            System.out.println("属性赋值前：" + orderService);
//            propertyValues.addPropertyValue("orderService",orderService);
//            beanDefinition.setPropertyValues(propertyValues);
//        }
//    }
//}
